home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ccccaaaannnnppppuuuutttt((((DDDD3333)))) ccccaaaannnnppppuuuutttt((((DDDD3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- _cccc_aaaa_nnnn_pppp_uuuu_tttt - test for room in a message queue
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_ssss_tttt_rrrr_eeee_aaaa_mmmm_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
- _iiii_nnnn_tttt _cccc_aaaa_nnnn_pppp_uuuu_tttt_((((_qqqq_uuuu_eeee_uuuu_eeee______tttt _****_q_))))_;;;;
-
- AAAArrrrgggguuuummmmeeeennnnttttssss
- _q Pointer to the message queue.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _cccc_aaaa_nnnn_pppp_uuuu_tttt tests if there is room for a message in the queue pointed to by _q.
- The queue must have a service procedure.
-
- RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
- _cccc_aaaa_nnnn_pppp_uuuu_tttt returns 1 if a message can be placed on the queue. 0 is returned
- if a message cannot be enqueued because of flow control.
-
- UUUUSSSSAAAAGGGGEEEE
- The driver is responsible for both testing a queue with _cccc_aaaa_nnnn_pppp_uuuu_tttt and
- refraining from placing a message on the queue if _cccc_aaaa_nnnn_pppp_uuuu_tttt fails.
-
- It is possible because of race conditions to test for room using _cccc_aaaa_nnnn_pppp_uuuu_tttt
- and get an indication that there is room for a message, and then have the
- queue fill up before subsequently enqueuing the message, causing a
- violation of flow control. This is not a problem, since the violation of
- flow control in this case is bounded.
-
- LLLLeeeevvvveeeellll
- Base or Interrupt.
-
- SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
- Does not sleep.
-
- Driver-defined basic locks, read/write locks, and sleep locks may be held
- across calls to this function.
-
- EEEExxxxaaaammmmpppplllleeeessss
- See _bbbb_uuuu_ffff_cccc_aaaa_llll_llll(D3) for an example of _cccc_aaaa_nnnn_pppp_uuuu_tttt.
-
- RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
- _bbbb_cccc_aaaa_nnnn_pppp_uuuu_tttt(D3), _pppp_uuuu_tttt_bbbb_qqqq(D3), _pppp_uuuu_tttt_nnnn_eeee_xxxx_tttt(D3)
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-